/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAL;

import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;

/**
 *
 * @author nvc11190
 */
public class Login {
    private MyConnect conn;
    public Login()
    {
        conn = new MyConnect();
    }
    public ResultSet TestLogin(String user) throws SQLException
    {
       
        return conn.excuteQuery("SELECT * FROM nhan_vien WHERE username= '"+user+"'");
     
    }
    
}
